<?php
/**
 * @Author:      lyt
 * @DateTime:  2017-05-27 17:55:55
 * @Description: 用于清理存在账户的授信额度
 */
$api_service_path = __DIR__ . "/../../../../api/";
ob_start();
require_once($api_service_path . "public/index.php");
ob_end_clean();
DB::connection()->disableQueryLog(); 

//找到原来有授信值
$bak_ba=DB::select("SELECT * FROM `user_account_bak` where credit!=0 ");
foreach ($bak_ba as $_bba) {
    Account::custom_service_credit($_bba->user_id,$_bba->credit);
}






